package com.jgzx.feign;


import com.jgzx.common.R;
import com.jgzx.constant.ServiceConstants;
import com.jgzx.domain.IdDTO;
import com.jgzx.domain.vo.UserVO;
import org.apache.catalina.User;
import org.springframework.context.annotation.Primary;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


@Primary
@FeignClient(contextId = "UserFeignClient")
public interface UserFeignClient {
    /**
     * 获取获取用户详情
     * @param idDTO 用户idDTO
     */
    @PostMapping("/publicity/getUserInfoByUserId")
    R<List<UserVO>> getUserInfoByUserId(@RequestBody IdDTO idDTO);
}
